package com.cgtong.android.mvp.contract;

import com.zhouyou.http.callback.SimpleCallBack;
import com.zhouyou.http.exception.ApiException;

/**
 * Created by tinwai on 2017/10/23.
 */

public interface ForgetPasswordContract {
    interface View {
        void onSendValidCodeError(ApiException e);

        void breakClickValidCode();

        void onSaveForgetPwdError(ApiException e);

        void onSaveForgetPwdSuccess();
    }

    interface Model {
        void sendValidCode(String phone, SimpleCallBack<Object> callBack);

        void saveForgetPwd(String confirmPassword, String mobile, String newPassword, String validCode, SimpleCallBack<Object> callBack);
    }

    interface Presenter {
        void sendValidCode(String phone);

        void saveForgetPwd(String confirmPassword, String mobile, String newPassword, String validCode);
    }
}
